package com.start_eternity.oasissafewalk.pojo;
import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;
import javax.validation.constraints.NotBlank;

/**
 * @TableName notice
 */
@TableName(value ="notice")
@Data
public class Notice implements Serializable {

    @TableId(type = IdType.AUTO)
    private Integer nId;

    @NotBlank
    @JsonProperty("nTitle")
    private String nTitle;

    @JsonProperty("nContent")
    private String nContent;

    @JsonProperty("nPublishtime")
    private LocalDateTime nPublishtime;

    private Integer nIfCancel;

    private String nRemark;

    private Integer userType;

    private LocalDateTime updateTime;

}